{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\Estimates_for_plots_labels.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}15 Sep 2023, 10:57:55
{txt}
{com}. set more off
{txt}
{com}. 
. xtset id2

{txt}{col 1}Panel variable: {res}id2{txt} (unbalanced)

{com}. 
. 
. 
. 
.  encode energy_label_eu, gen(label)
{txt}
{com}. 
. 
. preserve        
{txt}
{com}.         
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, UNIT SALES, SUBSIDIZED, LABEL A+++
. quietly reghdfe dlogunits  i.presub3h##ib1.treath##ib4.label i.presub2h##ib1.treath##ib4.label i.presub1h##ib1.treath##ib4.label i.sub1h##ib1.treath##ib4.label i.sub2h##ib1.treath##ib4.label i.sub3h##ib1.treath##ib4.label i.sub4h##ib1.treath##ib4.label i.postsub1h##ib1.treath##ib4.label i.postsub2h##ib1.treath##ib4.label i.postsub3h##ib1.treath##ib4.label mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu3
{txt}
{com}. 
. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .169376{col 26}{space 2} .0972834{col 37}{space 1}    1.74{col 46}{space 3}0.082{col 54}{space 4} -.021296{col 67}{space 3}  .360048
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2042754{col 26}{space 2} .1125414{col 37}{space 1}    1.82{col 46}{space 3}0.070{col 54}{space 4}-.0163017{col 67}{space 3} .4248524
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2486427{col 26}{space 2}  .119988{col 37}{space 1}    2.07{col 46}{space 3}0.038{col 54}{space 4} .0134706{col 67}{space 3} .4838148
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .4580496{col 26}{space 2} .1177122{col 37}{space 1}    3.89{col 46}{space 3}0.000{col 54}{space 4} .2273379{col 67}{space 3} .6887612
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .9456938{col 26}{space 2} .1448429{col 37}{space 1}    6.53{col 46}{space 3}0.000{col 54}{space 4} .6618069{col 67}{space 3} 1.229581
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .7418536{col 26}{space 2} .1425194{col 37}{space 1}    5.21{col 46}{space 3}0.000{col 54}{space 4} .4625208{col 67}{space 3} 1.021186
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .5096489{col 26}{space 2} .1403974{col 37}{space 1}    3.63{col 46}{space 3}0.000{col 54}{space 4} .2344751{col 67}{space 3} .7848227
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .328555{col 26}{space 2} .1489516{col 37}{space 1}    2.21{col 46}{space 3}0.027{col 54}{space 4} .0366153{col 67}{space 3} .6204947
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .3410096{col 26}{space 2} .1487606{col 37}{space 1}    2.29{col 46}{space 3}0.022{col 54}{space 4} .0494441{col 67}{space 3} .6325751
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .4228161{col 26}{space 2} .1644801{col 37}{space 1}    2.57{col 46}{space 3}0.010{col 54}{space 4}  .100441{col 67}{space 3} .7451911
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="s"
{txt}
{com}.                 gen label="a3"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, UNIT SALES, SUBSIDIZED, LABEL A++
. 
. 
. quietly reghdfe dlogunits i.presub3h##ib1.treath##ib3.label i.presub2h##ib1.treath##ib3.label i.presub1h##ib1.treath##ib3.label i.sub1h##ib1.treath##ib3.label i.sub2h##ib1.treath##ib3.label i.sub3h##ib1.treath##ib3.label i.sub4h##ib1.treath##ib3.label i.postsub1h##ib1.treath##ib3.label i.postsub2h##ib1.treath##ib3.label i.postsub3h##ib1.treath##ib3.label mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu2
{txt}
{com}. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0901398{col 26}{space 2} .1491853{col 37}{space 1}    0.60{col 46}{space 3}0.546{col 54}{space 4}-.2022581{col 67}{space 3} .3825377
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0206867{col 26}{space 2} .1550015{col 37}{space 1}    0.13{col 46}{space 3}0.894{col 54}{space 4}-.2831106{col 67}{space 3}  .324484
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0404591{col 26}{space 2} .1807172{col 37}{space 1}    0.22{col 46}{space 3}0.823{col 54}{space 4}-.3137401{col 67}{space 3} .3946583
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2226812{col 26}{space 2} .2137526{col 37}{space 1}    1.04{col 46}{space 3}0.298{col 54}{space 4}-.1962662{col 67}{space 3} .6416285
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2049983{col 26}{space 2} .2301088{col 37}{space 1}    0.89{col 46}{space 3}0.373{col 54}{space 4}-.2460067{col 67}{space 3} .6560032
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1084173{col 26}{space 2} .2268527{col 37}{space 1}   -0.48{col 46}{space 3}0.633{col 54}{space 4}-.5530404{col 67}{space 3} .3362058
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1572834{col 26}{space 2} .2315912{col 37}{space 1}   -0.68{col 46}{space 3}0.497{col 54}{space 4}-.6111938{col 67}{space 3} .2966269
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0082841{col 26}{space 2} .2483485{col 37}{space 1}   -0.03{col 46}{space 3}0.973{col 54}{space 4}-.4950382{col 67}{space 3}   .47847
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.4910639{col 26}{space 2} .2749603{col 37}{space 1}   -1.79{col 46}{space 3}0.074{col 54}{space 4}-1.029976{col 67}{space 3} .0478484
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.2626643{col 26}{space 2} .2661144{col 37}{space 1}   -0.99{col 46}{space 3}0.324{col 54}{space 4}-.7842389{col 67}{space 3} .2589103
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="s"
{txt}
{com}.                 gen label="a2"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve        
{txt}
{com}.         
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, UNIT SALES, SUBSIDIZED, LABEL A+
. 
. quietly reghdfe dlogunits i.presub3h##ib1.treath##ib2.label i.presub2h##ib1.treath##ib2.label i.presub1h##ib1.treath##ib2.label i.sub1h##ib1.treath##ib2.label i.sub2h##ib1.treath##ib2.label i.sub3h##ib1.treath##ib2.label i.sub4h##ib1.treath##ib2.label i.postsub1h##ib1.treath##ib2.label i.postsub2h##ib1.treath##ib2.label i.postsub3h##ib1.treath##ib2.label mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu1
{txt}
{com}. 
. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1162867{col 26}{space 2} .2339643{col 37}{space 1}   -0.50{col 46}{space 3}0.619{col 54}{space 4}-.5748484{col 67}{space 3}  .342275
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .1846675{col 26}{space 2} .2984862{col 37}{space 1}    0.62{col 46}{space 3}0.536{col 54}{space 4}-.4003548{col 67}{space 3} .7696898
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1874508{col 26}{space 2} .3856354{col 37}{space 1}   -0.49{col 46}{space 3}0.627{col 54}{space 4}-.9432823{col 67}{space 3} .5683808
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.6499701{col 26}{space 2} .3736257{col 37}{space 1}   -1.74{col 46}{space 3}0.082{col 54}{space 4}-1.382263{col 67}{space 3} .0823229
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.454493{col 26}{space 2} .3664671{col 37}{space 1}   -1.24{col 46}{space 3}0.215{col 54}{space 4}-1.172755{col 67}{space 3} .2637693
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.548962{col 26}{space 2} .3587234{col 37}{space 1}   -1.53{col 46}{space 3}0.126{col 54}{space 4}-1.252047{col 67}{space 3} .1541229
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.3401631{col 26}{space 2} .4326194{col 37}{space 1}   -0.79{col 46}{space 3}0.432{col 54}{space 4}-1.188082{col 67}{space 3} .5077554
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.4905182{col 26}{space 2} .4619281{col 37}{space 1}   -1.06{col 46}{space 3}0.288{col 54}{space 4}-1.395881{col 67}{space 3} .4148443
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.5190333{col 26}{space 2}  .423518{col 37}{space 1}   -1.23{col 46}{space 3}0.220{col 54}{space 4}-1.349113{col 67}{space 3} .3110468
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.9672505{col 26}{space 2} .4481612{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4} -1.84563{col 67}{space 3}-.0888707
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="s"
{txt}
{com}.                 gen label="a1"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. 
. preserve        
{txt}
{com}.         
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, PRICES, SUBSIDIZED, LABEL A+++
. 
. quietly reghdfe dlogunits  i.presub2h##ib1.treath##ib4.label i.presub1h##ib1.treath##ib4.label i.sub1h##ib1.treath##ib4.label i.sub2h##ib1.treath##ib4.label i.sub3h##ib1.treath##ib4.label i.sub4h##ib1.treath##ib4.label i.postsub1h##ib1.treath##ib4.label i.postsub2h##ib1.treath##ib4.label  mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}.                 
. quietly reghdfe dlogprice i.presub3h##ib1.treath##ib4.label i.presub2h##ib1.treath##ib4.label i.presub1h##ib1.treath##ib4.label i.sub1h##ib1.treath##ib4.label i.sub2h##ib1.treath##ib4.label i.sub3h##ib1.treath##ib4.label i.sub4h##ib1.treath##ib4.label i.postsub1h##ib1.treath##ib4.label i.postsub2h##ib1.treath##ib4.label i.postsub3h##ib1.treath##ib4.label mage mage2  if country!="Croatia" & samplel, absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu3
{txt}
{com}. 
. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0191336{col 26}{space 2} .0068259{col 37}{space 1}    2.80{col 46}{space 3}0.005{col 54}{space 4} .0057552{col 67}{space 3} .0325121
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0000948{col 26}{space 2} .0080469{col 37}{space 1}    0.01{col 46}{space 3}0.991{col 54}{space 4}-.0156769{col 67}{space 3} .0158665
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0090255{col 26}{space 2} .0091523{col 37}{space 1}    0.99{col 46}{space 3}0.324{col 54}{space 4}-.0089127{col 67}{space 3} .0269637
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .015883{col 26}{space 2} .0096203{col 37}{space 1}    1.65{col 46}{space 3}0.099{col 54}{space 4}-.0029724{col 67}{space 3} .0347384
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0362629{col 26}{space 2} .0104796{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0157232{col 67}{space 3} .0568026
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .040283{col 26}{space 2} .0108179{col 37}{space 1}    3.72{col 46}{space 3}0.000{col 54}{space 4} .0190802{col 67}{space 3} .0614857
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0408878{col 26}{space 2} .0121182{col 37}{space 1}    3.37{col 46}{space 3}0.001{col 54}{space 4} .0171366{col 67}{space 3} .0646391
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0069537{col 26}{space 2} .0131793{col 37}{space 1}    0.53{col 46}{space 3}0.598{col 54}{space 4}-.0188773{col 67}{space 3} .0327848
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0141698{col 26}{space 2} .0131672{col 37}{space 1}    1.08{col 46}{space 3}0.282{col 54}{space 4}-.0116375{col 67}{space 3} .0399771
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0168284{col 26}{space 2} .0138678{col 37}{space 1}    1.21{col 46}{space 3}0.225{col 54}{space 4}-.0103519{col 67}{space 3} .0440088
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a3"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, PRICES, SUBSIDIZED, LABEL A++
. 
. quietly reghdfe dlogunits  i.presub2h##ib1.treath##ib4.label i.presub1h##ib1.treath##ib4.label i.sub1h##ib1.treath##ib4.label i.sub2h##ib1.treath##ib4.label i.sub3h##ib1.treath##ib4.label i.sub4h##ib1.treath##ib4.label i.postsub1h##ib1.treath##ib4.label i.postsub2h##ib1.treath##ib4.label  mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}. 
. 
. quietly reghdfe dlogprice i.presub3h##ib1.treath##ib3.label i.presub2h##ib1.treath##ib3.label i.presub1h##ib1.treath##ib3.label i.sub1h##ib1.treath##ib3.label i.sub2h##ib1.treath##ib3.label i.sub3h##ib1.treath##ib3.label i.sub4h##ib1.treath##ib3.label i.postsub1h##ib1.treath##ib3.label i.postsub2h##ib1.treath##ib3.label i.postsub3h##ib1.treath##ib3.label mage mage2  if country!="Croatia" & samplel, absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu2
{txt}
{com}. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0144257{col 26}{space 2} .0115321{col 37}{space 1}    1.25{col 46}{space 3}0.211{col 54}{space 4}-.0081768{col 67}{space 3} .0370282
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0031878{col 26}{space 2} .0132937{col 37}{space 1}    0.24{col 46}{space 3}0.810{col 54}{space 4}-.0228673{col 67}{space 3}  .029243
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0104607{col 26}{space 2} .0167979{col 37}{space 1}    0.62{col 46}{space 3}0.533{col 54}{space 4}-.0224627{col 67}{space 3}  .043384
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0076713{col 26}{space 2} .0228246{col 37}{space 1}   -0.34{col 46}{space 3}0.737{col 54}{space 4}-.0524067{col 67}{space 3} .0370642
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0163953{col 26}{space 2} .0252686{col 37}{space 1}    0.65{col 46}{space 3}0.516{col 54}{space 4}-.0331302{col 67}{space 3} .0659207
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0138756{col 26}{space 2} .0238666{col 37}{space 1}    0.58{col 46}{space 3}0.561{col 54}{space 4}-.0329021{col 67}{space 3} .0606532
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0004286{col 26}{space 2} .0246642{col 37}{space 1}    0.02{col 46}{space 3}0.986{col 54}{space 4}-.0479123{col 67}{space 3} .0487694
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0070335{col 26}{space 2} .0240621{col 37}{space 1}   -0.29{col 46}{space 3}0.770{col 54}{space 4}-.0541943{col 67}{space 3} .0401273
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0166107{col 26}{space 2}  .026426{col 37}{space 1}   -0.63{col 46}{space 3}0.530{col 54}{space 4}-.0684047{col 67}{space 3} .0351833
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0320933{col 26}{space 2} .0260202{col 37}{space 1}   -1.23{col 46}{space 3}0.217{col 54}{space 4}-.0830919{col 67}{space 3} .0189053
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a2"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve        
{txt}
{com}.         
. egen cmt=group(country month treath)
{txt}(1,740,985 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treath)
{txt}(1,741,033 missing values generated)

{com}. label list label
{txt}label:
{res}           1 A
           2 A+
           3 A++
           4 A+++
           5 B
           6 C
           7 D
           8 NOT APPLICABLE
           9 UNKNOWN
          10 n.a.
{txt}
{com}. 
. 
. ***HUNGARY, 2015, PRICES, SUBSIDIZED, LABEL A+
. 
. quietly reghdfe dlogunits  i.presub2h##ib1.treath##ib4.label i.presub1h##ib1.treath##ib4.label i.sub1h##ib1.treath##ib4.label i.sub2h##ib1.treath##ib4.label i.sub3h##ib1.treath##ib4.label i.sub4h##ib1.treath##ib4.label i.postsub1h##ib1.treath##ib4.label i.postsub2h##ib1.treath##ib4.label  mage mage2  if country!="Croatia", absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}. 
. quietly reghdfe dlogprice i.presub3h##ib1.treath##ib2.label i.presub2h##ib1.treath##ib2.label i.presub1h##ib1.treath##ib2.label i.sub1h##ib1.treath##ib2.label i.sub2h##ib1.treath##ib2.label i.sub3h##ib1.treath##ib2.label i.sub4h##ib1.treath##ib2.label i.postsub1h##ib1.treath##ib2.label i.postsub2h##ib1.treath##ib2.label i.postsub3h##ib1.treath##ib2.label mage mage2  if country!="Croatia" & samplel , absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu1
{txt}
{com}. 
. 
.                 nlcom _b[1.presub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0210525{col 26}{space 2} .0141024{col 37}{space 1}    1.49{col 46}{space 3}0.135{col 54}{space 4}-.0065878{col 67}{space 3} .0486927
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0147593{col 26}{space 2}  .017699{col 37}{space 1}    0.83{col 46}{space 3}0.404{col 54}{space 4}-.0199302{col 67}{space 3} .0494487
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0326532{col 26}{space 2} .0196434{col 37}{space 1}    1.66{col 46}{space 3}0.096{col 54}{space 4}-.0058472{col 67}{space 3} .0711536
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0389604{col 26}{space 2} .0231991{col 37}{space 1}    1.68{col 46}{space 3}0.093{col 54}{space 4} -.006509{col 67}{space 3} .0844298
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0497437{col 26}{space 2} .0212071{col 37}{space 1}    2.35{col 46}{space 3}0.019{col 54}{space 4} .0081785{col 67}{space 3} .0913089
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom  _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0361298{col 26}{space 2} .0311617{col 37}{space 1}    1.16{col 46}{space 3}0.246{col 54}{space 4}-.0249459{col 67}{space 3} .0972056
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0318805{col 26}{space 2} .0349245{col 37}{space 1}    0.91{col 46}{space 3}0.361{col 54}{space 4}-.0365703{col 67}{space 3} .1003314
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0070368{col 26}{space 2} .0356355{col 37}{space 1}   -0.20{col 46}{space 3}0.843{col 54}{space 4}-.0768812{col 67}{space 3} .0628075
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0131637{col 26}{space 2} .0372371{col 37}{space 1}   -0.35{col 46}{space 3}0.724{col 54}{space 4} -.086147{col 67}{space 3} .0598196
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s9
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta", replace)        idstr(5)                
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h], post

       {txt}_nl_1: {res}_b[1.presub3h]+_b[1.presub2h]+_b[1.presub1h]+_b[1.sub1h]+_b[1.sub2h]+_b[1.sub3h]+_b[1.sub4h]+_b[1.postsub1h]+_b[1.postsub2h]+_b[1.postsub3h]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0042499{col 26}{space 2}  .036421{col 37}{space 1}   -0.12{col 46}{space 3}0.907{col 54}{space 4}-.0756337{col 67}{space 3} .0671339
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s10
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta", replace)       idstr(6)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta{rm}
saved
{p_end}

{com}.         
. 
.         clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s9.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s10.dta"
{txt}
{com}.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a1"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. clear all
{res}{txt}
{com}.                 
.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta"
{txt}{p 0 7 2}
(variable
{bf:type} was {bf:str1}, now {bf:str2} to accommodate using data's values)
{p_end}

{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta"
{txt}
{com}. 
.                 gen program="hu15"
{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2015_Coeff.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2015_Coeff.dta{rm}
saved
{p_end}

{com}. restore
{txt}
{com}. 
. 
.                 
. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, UNIT SALES, SUBSIDIZED, A+++
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib4.label i.presub2hf##ib1.treathf##ib4.label i.presub1hf##ib1.treathf##ib4.label i.sub1hf##ib1.treathf##ib4.label i.sub2hf##ib1.treathf##ib4.label i.sub3hf##ib1.treathf##ib4.label i.sub4hf##ib1.treathf##ib4.label i.postsub1hf##ib1.treathf##ib4.label  mage mage2  , absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu3
{txt}
{com}. 
. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1121901{col 26}{space 2} .2449131{col 37}{space 1}   -0.46{col 46}{space 3}0.647{col 54}{space 4}-.5922109{col 67}{space 3} .3678307
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .3648817{col 26}{space 2} .2329179{col 37}{space 1}    1.57{col 46}{space 3}0.117{col 54}{space 4} -.091629{col 67}{space 3} .8213923
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .1650635{col 26}{space 2} .1926082{col 37}{space 1}    0.86{col 46}{space 3}0.391{col 54}{space 4}-.2124417{col 67}{space 3} .5425687
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.081845{col 26}{space 2} .3107232{col 37}{space 1}    3.48{col 46}{space 3}0.000{col 54}{space 4} .4728385{col 67}{space 3} 1.690851
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3       
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.616086{col 26}{space 2} .3697741{col 37}{space 1}    4.37{col 46}{space 3}0.000{col 54}{space 4} .8913419{col 67}{space 3}  2.34083
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.414946{col 26}{space 2} .3903922{col 37}{space 1}    3.62{col 46}{space 3}0.000{col 54}{space 4} .6497908{col 67}{space 3}   2.1801
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.138061{col 26}{space 2} .4043074{col 37}{space 1}    2.81{col 46}{space 3}0.005{col 54}{space 4} .3456331{col 67}{space 3} 1.930489
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .5248057{col 26}{space 2} .3750332{col 37}{space 1}    1.40{col 46}{space 3}0.162{col 54}{space 4}-.2102458{col 67}{space 3} 1.259857
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="s"
{txt}
{com}.                 gen label="a3"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, UNIT SALES, SUBSIDIZED, A++
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib3.label i.presub2hf##ib1.treathf##ib3.label i.presub1hf##ib1.treathf##ib3.label i.sub1hf##ib1.treathf##ib3.label i.sub2hf##ib1.treathf##ib3.label i.sub3hf##ib1.treathf##ib3.label i.sub4hf##ib1.treathf##ib3.label i.postsub1hf##ib1.treathf##ib3.label  mage mage2  , absorb(id2 cmlt) cluster(id)      
{txt}
{com}. est store subu2
{txt}
{com}. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0630072{col 26}{space 2}  .089839{col 37}{space 1}   -0.70{col 46}{space 3}0.483{col 54}{space 4}-.2390884{col 67}{space 3}  .113074
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .1883262{col 26}{space 2} .0959046{col 37}{space 1}    1.96{col 46}{space 3}0.050{col 54}{space 4} .0003567{col 67}{space 3} .3762956
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2137005{col 26}{space 2}   .10707{col 37}{space 1}    2.00{col 46}{space 3}0.046{col 54}{space 4} .0038473{col 67}{space 3} .4235538
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .6959373{col 26}{space 2} .1208021{col 37}{space 1}    5.76{col 46}{space 3}0.000{col 54}{space 4} .4591694{col 67}{space 3} .9327051
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2       
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.121482{col 26}{space 2}  .140634{col 37}{space 1}    7.97{col 46}{space 3}0.000{col 54}{space 4} .8458441{col 67}{space 3} 1.397119
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2       
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.059173{col 26}{space 2} .1437309{col 37}{space 1}    7.37{col 46}{space 3}0.000{col 54}{space 4} .7774655{col 67}{space 3}  1.34088
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .6799671{col 26}{space 2} .1380923{col 37}{space 1}    4.92{col 46}{space 3}0.000{col 54}{space 4} .4093111{col 67}{space 3}  .950623
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .5479653{col 26}{space 2} .1481838{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .2575304{col 67}{space 3} .8384003
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="s"
{txt}
{com}.                 gen label="a2"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, UNIT SALES, SUBSIDIZED, A+
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib2.label i.presub2hf##ib1.treathf##ib2.label i.presub1hf##ib1.treathf##ib2.label i.sub1hf##ib1.treathf##ib2.label i.sub2hf##ib1.treathf##ib2.label i.sub3hf##ib1.treathf##ib2.label i.sub4hf##ib1.treathf##ib2.label i.postsub1hf##ib1.treathf##ib2.label  mage mage2  , absorb(id2 cmlt) cluster(id)      
{txt}
{com}. est store subu1
{txt}
{com}. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1033145{col 26}{space 2} .0597029{col 37}{space 1}   -1.73{col 46}{space 3}0.084{col 54}{space 4}  -.22033{col 67}{space 3} .0137011
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.2028701{col 26}{space 2} .0733708{col 37}{space 1}   -2.76{col 46}{space 3}0.006{col 54}{space 4}-.3466741{col 67}{space 3} -.059066
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1893531{col 26}{space 2} .0825169{col 37}{space 1}   -2.29{col 46}{space 3}0.022{col 54}{space 4}-.3510832{col 67}{space 3} -.027623
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.1175161{col 26}{space 2} .0859761{col 37}{space 1}   -1.37{col 46}{space 3}0.172{col 54}{space 4}-.2860262{col 67}{space 3} .0509941
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1       
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0002707{col 26}{space 2} .0949377{col 37}{space 1}   -0.00{col 46}{space 3}0.998{col 54}{space 4}-.1863452{col 67}{space 3} .1858037
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1       
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0378694{col 26}{space 2} .1041707{col 37}{space 1}    0.36{col 46}{space 3}0.716{col 54}{space 4}-.1663014{col 67}{space 3} .2420403
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.122108{col 26}{space 2} .1007762{col 37}{space 1}   -1.21{col 46}{space 3}0.226{col 54}{space 4}-.3196257{col 67}{space 3} .0754097
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0130921{col 26}{space 2} .1018672{col 37}{space 1}    0.13{col 46}{space 3}0.898{col 54}{space 4}-.1865639{col 67}{space 3} .2127481
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="s"
{txt}
{com}.                 gen label="a1"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, PRICES, SUBSIDIZED, A+++
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib4.label i.presub2hf##ib1.treathf##ib4.label i.presub1hf##ib1.treathf##ib4.label i.sub1hf##ib1.treathf##ib4.label i.sub2hf##ib1.treathf##ib4.label i.sub3hf##ib1.treathf##ib4.label i.sub4hf##ib1.treathf##ib4.label i.postsub1hf##ib1.treathf##ib4.label  mage mage2  , absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}.                 
. 
. quietly reghdfe dlogprice i.presub3hf##ib1.treathf##ib4.label i.presub2hf##ib1.treathf##ib4.label i.presub1hf##ib1.treathf##ib4.label i.sub1hf##ib1.treathf##ib4.label i.sub2hf##ib1.treathf##ib4.label i.sub3hf##ib1.treathf##ib4.label i.sub4hf##ib1.treathf##ib4.label i.postsub1hf##ib1.treathf##ib4.label  mage mage2  if  samplel, absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu3
{txt}
{com}. 
. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0217757{col 26}{space 2} .0240352{col 37}{space 1}    0.91{col 46}{space 3}0.365{col 54}{space 4}-.0253325{col 67}{space 3} .0688839
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0090971{col 26}{space 2} .0244696{col 37}{space 1}    0.37{col 46}{space 3}0.710{col 54}{space 4}-.0388624{col 67}{space 3} .0570566
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0115576{col 26}{space 2} .0284486{col 37}{space 1}    0.41{col 46}{space 3}0.685{col 54}{space 4}-.0442006{col 67}{space 3} .0673158
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0030509{col 26}{space 2} .0286894{col 37}{space 1}    0.11{col 46}{space 3}0.915{col 54}{space 4}-.0531793{col 67}{space 3} .0592812
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3       
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0009086{col 26}{space 2} .0331157{col 37}{space 1}   -0.03{col 46}{space 3}0.978{col 54}{space 4}-.0658141{col 67}{space 3}  .063997
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0142745{col 26}{space 2} .0391329{col 37}{space 1}    0.36{col 46}{space 3}0.715{col 54}{space 4}-.0624247{col 67}{space 3} .0909737
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0078502{col 26}{space 2} .0377179{col 37}{space 1}    0.21{col 46}{space 3}0.835{col 54}{space 4}-.0660756{col 67}{space 3} .0817759
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu3               
{txt}(results {stata estimates replay subu3:subu3} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0217862{col 26}{space 2} .0414324{col 37}{space 1}    0.53{col 46}{space 3}0.599{col 54}{space 4}-.0594198{col 67}{space 3} .1029922
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a3"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, PRICES, SUBSIDIZED, A++
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib4.label i.presub2hf##ib1.treathf##ib4.label i.presub1hf##ib1.treathf##ib4.label i.sub1hf##ib1.treathf##ib4.label i.sub2hf##ib1.treathf##ib4.label i.sub3hf##ib1.treathf##ib4.label i.sub4hf##ib1.treathf##ib4.label i.postsub1hf##ib1.treathf##ib4.label  mage mage2  , absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}. 
. quietly reghdfe dlogprice i.presub3hf##ib1.treathf##ib3.label i.presub2hf##ib1.treathf##ib3.label i.presub1hf##ib1.treathf##ib3.label i.sub1hf##ib1.treathf##ib3.label i.sub2hf##ib1.treathf##ib3.label i.sub3hf##ib1.treathf##ib3.label i.sub4hf##ib1.treathf##ib3.label i.postsub1hf##ib1.treathf##ib3.label  mage mage2  if  samplel, absorb(id2 cmlt) cluster(id)   
{txt}
{com}. est store subu2
{txt}
{com}. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0067551{col 26}{space 2} .0084689{col 37}{space 1}    0.80{col 46}{space 3}0.425{col 54}{space 4}-.0098436{col 67}{space 3} .0233538
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .013443{col 26}{space 2}   .00876{col 37}{space 1}    1.53{col 46}{space 3}0.125{col 54}{space 4}-.0037262{col 67}{space 3} .0306122
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0045525{col 26}{space 2}  .009821{col 37}{space 1}    0.46{col 46}{space 3}0.643{col 54}{space 4}-.0146962{col 67}{space 3} .0238013
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .020983{col 26}{space 2} .0114544{col 37}{space 1}    1.83{col 46}{space 3}0.067{col 54}{space 4}-.0014672{col 67}{space 3} .0434332
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2       
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0133296{col 26}{space 2} .0122737{col 37}{space 1}    1.09{col 46}{space 3}0.277{col 54}{space 4}-.0107264{col 67}{space 3} .0373856
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu2       
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0061541{col 26}{space 2} .0129684{col 37}{space 1}    0.47{col 46}{space 3}0.635{col 54}{space 4}-.0192635{col 67}{space 3} .0315717
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0177723{col 26}{space 2} .0135692{col 37}{space 1}    1.31{col 46}{space 3}0.190{col 54}{space 4}-.0088228{col 67}{space 3} .0443674
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu2               
{txt}(results {stata estimates replay subu2:subu2} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0429238{col 26}{space 2}  .014029{col 37}{space 1}    3.06{col 46}{space 3}0.002{col 54}{space 4} .0154275{col 67}{space 3} .0704201
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a2"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. egen cmt=group(country month treathf)
{txt}(772,376 missing values generated)

{com}. egen cmlt=group(country month energy_label_eu treathf)
{txt}(772,508 missing values generated)

{com}. 
. ***HUNGARY, 2016, PRICES, SUBSIDIZED, A+
. 
. quietly reghdfe dlogunits i.presub3hf##ib1.treathf##ib4.label i.presub2hf##ib1.treathf##ib4.label i.presub1hf##ib1.treathf##ib4.label i.sub1hf##ib1.treathf##ib4.label i.sub2hf##ib1.treathf##ib4.label i.sub3hf##ib1.treathf##ib4.label i.sub4hf##ib1.treathf##ib4.label i.postsub1hf##ib1.treathf##ib4.label  mage mage2  , absorb(id2 cmlt) cluster(id)
{txt}
{com}. generate samplel=e(sample)
{txt}
{com}. 
. quietly reghdfe dlogprice i.presub3hf##ib1.treathf##ib2.label i.presub2hf##ib1.treathf##ib2.label i.presub1hf##ib1.treathf##ib2.label i.sub1hf##ib1.treathf##ib2.label i.sub2hf##ib1.treathf##ib2.label i.sub3hf##ib1.treathf##ib2.label i.sub4hf##ib1.treathf##ib2.label i.postsub1hf##ib1.treathf##ib2.label  mage mage2  if  samplel, absorb(id2 cmlt) cluster(id)
{txt}
{com}. est store subu1
{txt}
{com}. 
.         nlcom _b[1.presub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0155731{col 26}{space 2} .0052485{col 37}{space 1}    2.97{col 46}{space 3}0.003{col 54}{space 4} .0052861{col 67}{space 3}   .02586
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s1
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta", replace)        idstr(-3)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0074465{col 26}{space 2}  .006473{col 37}{space 1}    1.15{col 46}{space 3}0.250{col 54}{space 4}-.0052404{col 67}{space 3} .0201335
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s2
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta", replace)        idstr(-2)
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta{rm}
saved
{p_end}

{com}.     
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0052177{col 26}{space 2} .0071283{col 37}{space 1}    0.73{col 46}{space 3}0.464{col 54}{space 4}-.0087534{col 67}{space 3} .0191888
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s3
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta", replace)        idstr(-1)       
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta{rm}
saved
{p_end}

{com}. 
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0138537{col 26}{space 2} .0075146{col 37}{space 1}    1.84{col 46}{space 3}0.065{col 54}{space 4}-.0008747{col 67}{space 3}  .028582
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s4
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta", replace)        idstr(0)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1       
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0025231{col 26}{space 2} .0074108{col 37}{space 1}    0.34{col 46}{space 3}0.734{col 54}{space 4}-.0120018{col 67}{space 3} .0170481
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s5
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta", replace)        idstr(1)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta{rm}
saved
{p_end}

{com}.                 
. est restore subu1       
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0046278{col 26}{space 2}  .007452{col 37}{space 1}   -0.62{col 46}{space 3}0.535{col 54}{space 4}-.0192334{col 67}{space 3} .0099779
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s6
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta", replace)        idstr(2)                        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0097596{col 26}{space 2}  .008341{col 37}{space 1}    1.17{col 46}{space 3}0.242{col 54}{space 4}-.0065886{col 67}{space 3} .0261077
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s7
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta", replace)        idstr(3)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta{rm}
saved
{p_end}

{com}.         
. est restore subu1               
{txt}(results {stata estimates replay subu1:subu1} are active now)

{com}.                 nlcom _b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf], post

       {txt}_nl_1: {res}_b[1.presub3hf]+_b[1.presub2hf]+_b[1.presub1hf]+_b[1.sub1hf]+_b[1.sub2hf]+_b[1.sub3hf]+_b[1.sub4hf]+_b[1.postsub1hf]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0124134{col 26}{space 2} .0083236{col 37}{space 1}    1.49{col 46}{space 3}0.136{col 54}{space 4}-.0039005{col 67}{space 3} .0287273
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 est store s8
{txt}
{com}.                 parmest, format(estimate min95 max95) saving("R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta", replace)        idstr(4)        
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta{rm}
saved
{p_end}

{com}.         
.                 clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s4.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s5.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s6.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s7.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s8.dta"
{txt}
{com}. 
.         
.                 gen type="sp"
{txt}
{com}.                 gen label="a1"
{txt}
{com}.                 drop z p parm
{txt}
{com}.                 rename idstr month
{res}{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta{rm}
saved
{p_end}

{com}.         
. restore 
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. clear all
{res}{txt}
{com}.                 
.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_3_p.dta"
{txt}{p 0 7 2}
(variable
{bf:type} was {bf:str1}, now {bf:str2} to accommodate using data's values)
{p_end}

{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_2_p.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\s_1_p.dta"
{txt}
{com}. 
.                 gen program="hu16"
{txt}
{com}.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2016_Coeff.dta", replace
{txt}{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2016_Coeff.dta{rm}
saved
{p_end}

{com}. restore         
{txt}
{com}.                 
. 
. 
. clear all
{res}{txt}
{com}.                 
.                 use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2015_Coeff.dta"
{txt}
{com}.                 append using "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\HU_2016_Coeff.dta"
{txt}
{com}.                 
.                 
.                 save "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\Estimates_for_plots_label.dta", replace
{txt}{p 0 4 2}
(file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\Estimates_for_plots_label.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\Estimates_for_plots_label.dta{rm}
saved
{p_end}

{com}. restore
{err}nothing to restore
{txt}{search r(622), local:r(622);}

end of do-file

{search r(622), local:r(622);}

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\Estimates_for_plots_labels.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}15 Sep 2023, 12:28:10
{txt}{.-}
{smcl}
{txt}{sf}{ul off}